﻿using System;
using System.Linq;

namespace _112_计算字符串的总长度_LINQ扩展方法
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] 数组 = { "effect", "teach", "table", "purpose", "transpor" };

            int 长度 = 数组.Sum(x => x.Length);
            Console.WriteLine($"字符串总长度{长度}");
        }
    }
}
